package com.itheima.mp.controller;


import com.itheima.mp.domain.vo.UserVO;
import com.itheima.mp.entity.Address;
import com.itheima.mp.service.IAddressService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xjs
 * @since 2024-06-25
 */
@RestController
@RequestMapping("/address")
public class AddressController {

    @Autowired
    private IAddressService addressService;

    @GetMapping("{id}")
    public Address getById(@PathVariable("id")Long id){
        return addressService.getById(id);
    }

}
